package com.example.common.net

import com.example.common.entity.BannerEntity
import com.example.common.entity.UserEntity
import okhttp3.RequestBody
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST

interface ApiServer {
    @GET(Cons.BANNER_URL)
    suspend fun getBanner():BannerEntity
    @POST(Cons.LOGIN_URL)
    suspend fun login(@Body body:RequestBody):UserEntity
    @POST(Cons.REGISTER_URL)
    suspend fun register(@Body body:RequestBody):UserEntity
}